import { BasicColumn, FormSchema } from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '日志标题',
    dataIndex: 'title',
    width: 200,
  },
  {
    title: '账号',
    dataIndex: 'loginName',
    width: 200,
  },
  {
    title: '权限编号',
    dataIndex: 'code',
  },
  {
    title: '请求地址',
    dataIndex: 'path',
  },
  {
    title: 'ip',
    dataIndex: 'ip',
  },
  {
    title: '地址',
    dataIndex: 'address',
  },
  {
    title: '浏览器',
    dataIndex: 'browser',
  },
  {
    title: '终端',
    dataIndex: 'os',
  },
  {
    title: '耗时',
    dataIndex: 'cost',
  },
  {
    title: '请求时间',
    dataIndex: 'createAt',
    width: 180,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    label: '日志标题',
    field: 'title',
    component: 'Input',
    colProps: { span: 6 },
  },
  {
    label: '账号',
    field: 'loginName',
    component: 'Input',
    colProps: { span: 6 },
  },
];
